// app.js
require("./common/lodash-fix");

App({
  onLaunch() {
    const windowInfo = wx.getWindowInfo();
    const safeAreaBottom = windowInfo.safeArea.bottom;
    const screenHeight = windowInfo.screenHeight;
    // 计算安全区域高度（非全面屏设备返回0）
    const safeAreaInsetBottom = screenHeight - safeAreaBottom;
    this.globalData.safeAreaInsetBottom = Math.max(safeAreaInsetBottom, 34);
  },
  globalData: {
    safeAreaInsetBottom: 0,
    userInfo: null,
    BASE_URL: "https://sxjkapi.sxlingzheng.com",
    APPID: "wxd267ea66008987f6",
    // 是否已拿到token
    access_token: "",
    // 用户信息
  },
});
